package windbell.domain.risk.proxy;

import edu.fudan.langlab.domain.task.proxy.TSKRoutineTaskGeneratorProxy;
import edu.fudan.mylang.pf.ProxyTarget;
import windbell.domain.risk.proxy.IHaveCheckTargetsProxy;
import windbell.domain.risk.proxy.RiskCheckGeneratorAction;

@ProxyTarget("windbell.domain.risk.RiskCheckGenerator")
public class RiskCheckGeneratorProxy extends TSKRoutineTaskGeneratorProxy implements IHaveCheckTargetsProxy {
  public RiskCheckGeneratorProxy() {
    this.setClazzName("windbell.domain.risk.RiskCheckGenerator");
  }
  
  private String status;
  
  public void setStatus(final String status) {
    this.status = status;
  }
  
  public String getStatus() {
    return this.status;
  }
  
  public Boolean isActionValid(final RiskCheckGeneratorAction action) {
    return RiskCheckGeneratorManager.isActionValid(action,status);
  }
}
